<?php
foreach ($rows as $r) {
	$url_thumb = BUtils::GetOfferPictureUrl($r['url_picture']);
	$url_picture = str_replace('thumb_', '', $url_thumb);
?>
<div class="picture" style="float:left;margin:0 15px 15px 0;">
	<a class="popup-gallery" href="<?php echo $url_picture; ?>" rel="gallery"><img class="img-polaroid" src="<?php echo $url_thumb; ?>" alt="" /></a>
</div>
<?php } ?>
<script>
$(function() {
	$('.popup-gallery').colorbox({rel:'gallery', transition:'none'});
});
</script>